import request from '@/utils/request'
// 1)	资产总数量
export function getCount(params) {
  return request({
    url: 'manage/assetsCon/count.do',
    method: 'get',
    params
  })
}
// 2)	资产总面积
export function getArea(params) {
  return request({
    url: 'manage/assetsCon/area.do',
    method: 'get',
    params
  })
}
// 3)	合同总户数
export function getUsers(params) {
  return request({
    url: 'manage/assetsCon/users.do',
    method: 'get',
    params
  })
}

// 4)	出租总收益
export function getEarning(params) {
  return request({
    url: 'manage/assetsCon/earnings.do',
    method: 'get',
    params
  })
}

// 1)	总面积统计
export function getAssetArea(params) {
  return request({
    url: 'manage/assetStatus/area.do',
    method: 'get',
    params
  })
}
// 2)	户数统计
export function getProperty(params) {
  return request({
    url: 'manage/assetStatus/property.do',
    method: 'get',
    params
  })
}
// 1)	资产数量占比
export function getRoomProperty(params) {
  return request({
    url: 'manage/assetsCon/roomProperty.do',
    method: 'get',
    params
  })
}
// 2)	资产面积占比
export function getRoomArea(params) {
  return request({
    url: 'manage/assetsCon/roomArea.do',
    method: 'get',
    params
  })
}
// 3)	资产分类占比
export function getDictionary(params) {
  return request({
    url: 'manage/assetsCon/dictionary.do',
    method: 'get',
    params
  })
}
// 4) 资产结构占比
export function getStructure(params) {
  return request({
    url: 'manage/assetsCon/structure.do',
    method: 'get',
    params
  })
}
// -----------------------------资产概况分析数据
export function getAssetsData(params) {
  return request({
    // url: 'manage/assetsCon/assetsData.do',
    url: 'manage/data/assetsData.do',
    method: 'post',
    data: params
  })
}
// -----------------------------经营状况分析数据
export function getFinData(params) {
  return request({
    url: 'manage/finCon/finData.do',
    method: 'post',
    data: params
  })
}
// ----------------------------产权/财务状况分析数据
export function getOperateData(params) {
  return request({
    url: 'manage/operate/operateData.do',
    method: 'post',
    data: params
  })
}

// ----------------------------租金情况分析数据
export function getRentData(params) {
  return request({
    url: 'manage/rentCon/rentData.do',
    method: 'post',
    data: params
  })
}

// ---------------------------安全分析数据
export function getSecData(params) {
  return request({
    url: 'manage/security/secData.do',
    method: 'post',
    data: params
  })
}

// 1)	资产数量占比
export function getPropertyBar(params) {
  return request({
    url: 'manage/assetsCon/propertyBar.do',
    method: 'post',
    data: params
  })
}
// 2)	资产面积占比
export function getRoomAreaBar(params) {
  return request({
    url: 'manage/assetsCon/roomAreaBar.do',
    method: 'get',
    params
  })
}
// 3) 资产结构占比
export function getStructureBar(params) {
  return request({
    url: 'manage/assetsCon/structureBar.do',
    method: 'get',
    params
  })
}

// 1)	资产总数量 柱状图
export function getCountBar(params) {
  return request({
    url: 'manage/assetsCon/countBar.do',
    method: 'get',
    params
  })
}
// 2)	资产总面积 柱状图
export function getAreaBar(params) {
  return request({
    url: 'manage/assetsCon/areaBar.do',
    method: 'get',
    params
  })
}

// 3)	合同总户数 柱状图
export function getChartBar(params) {
  return request({
    url: 'manage/assetsCon/chartBar.do',
    method: 'get',
    params
  })
}

// 4)	出租总收益 柱状图
export function getEarningsBar(params) {
  return request({
    url: 'manage/assetsCon/earningsBar.do',
    method: 'get',
    params
  })
}
// 6)	资产空置数量占资产总数
export function getVacancyArea(params) {
  return request({
    url: 'manage/assetStatus/vacancyArea.do',
    method: 'get',
    params
  })
}// 7)	住宅（营业）租金收益情况
export function getHire(params) {
  return request({
    url: 'manage/assetStatus/hire.do',
    method: 'get',
    params
  })
}
// 8)	住宅（营业）占用费情况
export function getOccupancy(params) {
  return request({
    url: 'manage/assetStatus/occupancy.do',
    method: 'get',
    params
  })
}
// 9)  低保户/非低保护：assetStatus/insured.do
export function getInsured(params) {
  return request({
    url: 'manage/assetStatus/insured.do',
    method: 'get',
    params
  })
}

// 1)	危房数量占资产总数
export function getHouseCount(params) {
  return request({
    url: 'manage/dgHouse/houseCount.do',
    method: 'get',
    params
  })
}

// 1)	危房面积占资产总数
export function getHouseArea(params) {
  return request({
    url: 'manage/dgHouse/houseArea.do',
    method: 'get',
    params
  })
}

// 3)	续租住宅（营业）占总出租户数
export function gethireUpdate(params) {
  return request({
    url: 'manage/hireUpdate/hireUpdate.do',
    method: 'get',
    params
  })
}

// 1)	小修/大中修/排危工程/其他维修占总维修户数比例
export function getRepair(params) {
  return request({
    url: 'manage/repair/repair.do',
    method: 'get',
    params
  })
}

// 租赁增加：新出租/拆迁安置/解危安置
export function getRentAdd(params) {
  return request({
    url: 'manage/rentCondition/rentAdd.do',
    method: 'post',
    data: params
  })
}

// 租赁减少：退佃/拆迁过渡/危房置空
export function getRentCut(params) {
  return request({
    url: 'manage/rentCondition/rentCut.do',
    method: 'post',
    data: params
  })
}

// 租赁增加饼状图接口
export function rentAddPie(params) {
  return request({
    url: 'manage/rentCondition/rentAddPie.do',
    method: 'get',
    params
  })
}
// 租赁减少饼状图接口
export function rentCutPie(params) {
  return request({
    url: 'manage/rentCondition/rentCutPie.do',
    method: 'get',
    params
  })
}
// 2)	市场租赁/低保户/政策租赁/空置占总户数比例
export function getRentThan(params) {
  return request({
    url: 'manage/rentCondition/rentThan.do',
    method: 'get',
    params
  })
}
// 1 抵押房地产户数
export function getCount2(params) {
  return request({
    url: 'manage/financial/count.do',
    method: 'get',
    params
  })
}

// 2)抵押房地产金额
export function getAmount(params) {
  return request({
    url: 'manage/financial/amount.do',
    method: 'get',
    params
  })
}
// 1)	租金上调户数（金额
export function getRentUp(params) {
  return request({
    url: 'manage/regulation/up.do',
    method: 'get',
    params
  })
}
// 2)	租金下调户数（金额
export function getRentDown(params) {
  return request({
    url: 'manage/regulation/down.do',
    method: 'get',
    params
  })
}
// 1办证情况
export function getPropertyAdd(params) {
  return request({
    url: 'manage/propertyData/property.do',
    method: 'get',
    params
  })
}

// 1维修情况
export function getRepairs(params) {
  return request({
    url: 'manage/safetyData/repairs.do',
    method: 'get',
    params
  })
}
// 2安全巡查统计
export function getSafetyCount(params) {
  return request({
    url: 'manage/safetyData/count.do',
    method: 'get',
    params
  })
}
// 3维修情况
export function getReapriCon(params) {
  return request({
    url: 'manage/safetyData/repairCon.do',
    method: 'post',
    data: params
  })
}
// 1数巡查异常户占总户数比例---饼状图
export function getAbnormalPie(params) {
  return request({
    url: 'manage/safetyData/abnormalPie.do',
    method: 'get',
    params
  })
}
// 2已维修/未维修占异常户数比例---饼状图
export function getRepairPie(params) {
  return request({
    url: 'manage/safetyData/repairPie.do',
    method: 'get',
    params
  })
}

// -------------------------------------------经营状况类
// 1基础数据  空置房屋
export function getEmptyRoom(params) {
  return request({
    url: 'manage/finCon/emptyRoom.do',
    method: 'get',
    params
  })
}
// 2基础数据  合同到期
export function getContractDue(params) {
  return request({
    url: 'manage/finCon/contractDue.do',
    method: 'get',
    params
  })
}
// 3基础数据  已出租住宅房
export function getRentalHousing(params) {
  return request({
    url: 'manage/finCon/rentalHousing.do',
    method: 'get',
    params
  })
}
// 4基础数据  已出租营业房
export function getRentalOffice(params) {
  return request({
    url: 'manage/finCon/rentalOffice.do',
    method: 'get',
    params
  })
}

// 1基础数据   住宅房情况
export function getHousingCon(params) {
  return request({
    url: 'manage/finCon/housingCon.do',
    method: 'get',
    params
  })
}
// 2基础数据  营业房屋情况
export function getOfficeCon(params) {
  return request({
    url: 'manage/finCon/officeCon.do',
    method: 'get',
    params
  })
}
// 3基础数据  资产出租处数情况
export function getRentReviseCon(params) {
  return request({
    url: 'manage/finCon/rentReviseCon.do',
    method: 'get',
    params
  })
}
// 4基础数据  资产出租面积情况
export function getRentAreaCon(params) {
  return request({
    url: 'manage/finCon/rentAreaCon.do',
    method: 'get',
    params
  })
}
// -------------------------------------------经营状况分析类
// 1  空置房屋
export function getEmptyRoomBar(params) {
  return request({
    url: 'manage/finCon/emptyRoomBar.do',
    method: 'get',
    params
  })
}
// 2  合同到期
export function getContractDueBar(params) {
  return request({
    url: 'manage/finCon/contractDueBar.do',
    method: 'get',
    params
  })
}
// 3 已出租住宅房
export function getRentalHousingBar(params) {
  return request({
    url: 'manage/finCon/rentalHousingBar.do',
    method: 'get',
    params
  })
}
// 4  已出租营业房
export function getRentalOfficeBar(params) {
  return request({
    url: 'manage/finCon/rentalOfficeBar.do',
    method: 'get',
    params
  })
}
// 5  住宅房屋情况
export function getHousingConBar(params) {
  return request({
    url: 'manage/finCon/housingConBar.do',
    method: 'get',
    params
  })
}
// 6  营业房屋情况
export function getOfficeConBar(params) {
  return request({
    url: 'manage/finCon/officeConBar.do',
    method: 'get',
    params
  })
}
// -------------------------------------------产权/财务状况类 基础数据
// 1 资产处数新增
export function getChartAdd(params) {
  return request({
    url: 'manage/operate/chartAdd.do',
    method: 'get',
    params
  })
}
// 2  资产处数减少
export function getChartCut(params) {
  return request({
    url: 'manage/operate/chartCut.do',
    method: 'get',
    params
  })
}
// 3  未办证房产
export function getNoCert(params) {
  return request({
    url: 'manage/operate/noCert.do',
    method: 'get',
    params
  })
}
// 4  已抵押房产
export function getPledged(params) {
  return request({
    url: 'manage/operate/pledged.do',
    method: 'get',
    params
  })
}

// 1  资产增加情况
export function getChartAddCon(params) {
  return request({
    url: 'manage/operate/chartAddCon.do',
    method: 'get',
    params
  })
}
// 2 资产减少情况
export function getChartCutCon(params) {
  return request({
    url: 'manage/operate/chartCutCon.do',
    method: 'get',
    params
  })
}
// 3 权证办理情况
export function getCertCon(params) {
  return request({
    url: 'manage/operate/certCon.do',
    method: 'get',
    params
  })
}
// 4 资产面积增加情况
export function getcAreaAdd(params) {
  return request({
    url: 'manage/operate/cAreaAdd.do',
    method: 'get',
    params
  })
}
// 5 资产面积减少情况
export function getcAreaCut(params) {
  return request({
    url: 'manage/operate/cAreaCut.do',
    method: 'get',
    params
  })
}
// -------------------------------------------租金状况 基础数据
// 1  年度应收租金
export function getReceivable(params) {
  return request({
    url: 'manage/rentCon/receivable.do',
    method: 'get',
    params
  })
}
// 2  年度已收租金
export function getTake(params) {
  return request({
    url: 'manage/rentCon/take.do',
    method: 'get',
    params
  })
}// 3  年度未收租金
export function getNoTake(params) {
  return request({
    url: 'manage/rentCon/noTake.do',
    method: 'get',
    params
  })
}// 4  年度实收租金
export function getReceived(params) {
  return request({
    url: 'manage/rentCon/received.do',
    method: 'get',
    params
  })
}// 5  年度实收历欠租金
export function getThroughOwe(params) {
  return request({
    url: 'manage/rentCon/throughOwe.do',
    method: 'get',
    params
  })
}// 6  年度预收租金
export function getPrecollected(params) {
  return request({
    url: 'manage/rentCon/precollected.do',
    method: 'get',
    params
  })
}

// 1  租金收取情况
export function getHireCon(params) {
  return request({
    url: 'manage/rentCon/hireCon.do',
    method: 'get',
    params
  })
}// 2  当月租金收入情况
export function getMonCon(params) {
  return request({
    url: 'manage/rentCon/monCon.do',
    method: 'post',
    data: params
  })
}
// -------------------------------------------安全状况 基础数据
// 1  巡查次数
export function getPatrol(params) {
  return request({
    url: 'manage/security/patrol.do',
    method: 'get',
    params
  })
}
// 2  隐患次数
export function getHidDanger(params) {
  return request({
    url: 'manage/security/hidDanger.do',
    method: 'get',
    params
  })
}// 3  整改次数
export function getAba(params) {
  return request({
    url: 'manage/security/aba.do',
    method: 'get',
    params
  })
}// 4  未整改次数
export function getNoAba(params) {
  return request({
    url: 'manage/security/noAba.do',
    method: 'get',
    params
  })
}// 5  当年已整改
export function getHaving(params) {
  return request({
    url: 'manage/security/having.do',
    method: 'get',
    params
  })
}

// 1  隐患资产占比
export function getNotDgRate(params) {
  return request({
    url: 'manage/security/notDgRate.do',
    method: 'get',
    params
  })
}// 2  隐患资产占比
export function getHavingRate(params) {
  return request({
    url: 'manage/security/havingRate.do',
    method: 'get',
    params
  })
}// 3  本年整改率
export function getYinHuanRate(params) {
  return request({
    url: 'manage/security/yinHuanRate.do',
    method: 'get',
    params
  })
}
// 
export function getYingShouLQ(params) {
  return request({
    url: 'manage/rentCon/yingShouLQ.do',
    method: 'get',
    params
  })
}

//权证办理情况（面积）
export function getCertConArea(params) {
  return request({
    url: 'manage/operate/certConArea.do',
    method: 'get',
    params
  })
}

//   报表
export function getAcquireData(params) {
  return request({
    url: 'manage/convert/acquireData.do',
    method: 'post',
    data: params
  })
}

//   租金报表
export function getRentChartData(params) {
  return request({
    url: 'manage/convert/rentData.do',
    method: 'post',
    data: params
  })
}
